package com.itheima.domain.db;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

//公告
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Announcement implements Serializable {
    private Integer id;                 //Id
    private String title;               //标题
    private String description;         //描述
    @TableField(fill = FieldFill.INSERT)
    private Date created;               //创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;               //更新时间时间
}
